<template>
	<view class="content">
		<text class="success-icon yticon icon-xuanzhong2"></text>
		<text class="tit">订单支付成功~</text>
		<text class="price">￥{{price}}</text>
		<view class="btn-group">
			<navigator url="/pages/index/index" open-type="redirect" class="mix-btn">返回商城首页</navigator>
			<navigator url="/pages/order/order" open-type="switchTab" class="mix-btn hollow">查看订单</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				price:0
			}
		},
		onLoad(option){
			this.price = option.price;
		},
		methods: {
			
		}
	}
</script>

<style lang='scss'>
	.content{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		.price{
			color: #FE2130;
			font-size: 40upx;
			margin-top: 20upx;
		}
	}
	.success-icon{
		font-size: 160upx;
		color: #fa436a;
		margin-top: 100upx;
	}
	.tit{
		font-size: 34upx;
		color: #181818;
		margin-top: 60upx;
	}
	.btn-group{
		padding-top: 100upx;
	}
	.mix-btn {
		margin-top: 60upx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 600upx;
		height: 80upx;
		font-size: $font-lg;
		color: #fff;
		background: linear-gradient(86deg, rgba(255, 94, 0, 1) 0%, rgba(255, 35, 0, 1) 100%);
		border-radius: 40upx;
		&.hollow{
			background: linear-gradient(86deg, #F9CA00 0%, #FFA200 100%);
			color: #fff;
		}
	}
</style>
